package com.example.swagger.entity;

import java.util.List;

public class Team {
    private Integer id;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public List<String> getHonors() {
        return honors;
    }

    public void setHonors(List<String> honors) {
        this.honors = honors;
    }

    public List<Member> getTeamMembers() {
        return teamMembers;
    }

    public void setTeamMembers(List<Member> teamMembers) {
        this.teamMembers = teamMembers;
    }

    private String teamName;
    private List<String> honors;
    private List<Member> teamMembers;

    public String toString(){
        StringBuffer sbHonors = new StringBuffer("荣耀start=-----\n");
        for (String honor:honors){
            sbHonors.append(honor);
            sbHonors.append("\n");
        }
        sbHonors.append("荣耀end----\n");

        StringBuffer sbMembers = new StringBuffer("成员start=-----\n");
        for (Member user:teamMembers){
            sbMembers.append(user.toString());
            sbMembers.append("\n");
        }
        sbMembers.append("成员end----\n");
        return "小组id:" + id + "\n" + "小组名字:" + teamName + "\n" + "小组所获荣誉" + sbHonors + "\n" + "小组成员:" + sbMembers;
    }
}
